package com.bestcem.xm.ticket.grpc.client.enums.messagecenter;

import com.bestcem.xm.messagecenter.grpc.v1.services.MessageTemplateScenario;
import lombok.Getter;
import lombok.ToString;

/**
 * 消息中心 消息模板使用场景 枚举
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @version v1.0
 * @date 2021/11/24 11:06
 */
@ToString
@Getter
public enum TemplateScenarioEnum {
    /*
     * 邮件投放
     */
    EMAIL_DELIVER(0, "邮件投放", MessageTemplateScenario.EMAIL_DELIVER),

    /*
     * 短信投放
     */
    SMS_DELIVER(1, "短信投放", MessageTemplateScenario.SMS_DELIVER),

    /*
     * 催答
     */
    PRESS_ANSWER(2, "催答", MessageTemplateScenario.PRESS_ANSWER),

    /*
     * 二次投放
     */
    DELIVER_AGAIN(3, "二次投放", MessageTemplateScenario.DELIVER_AGAIN),

    /*
     * 收到预警
     */
    RECEIVE_WARNING(4, "收到预警", MessageTemplateScenario.RECEIVE_WARNING),

    /*
     * 收到工单
     */
    RECEIVE_ORDER(5, "收到工单", MessageTemplateScenario.RECEIVE_ORDER),

    /*
     * 工单逾期前
     */
    ORDER_OVERDUE_AGO(6, "工单逾期前", MessageTemplateScenario.ORDER_OVERDUE_AGO),

    /*
     * 工单逾期
     */
    ORDER_OVERDUE(7, "工单逾期", MessageTemplateScenario.ORDER_OVERDUE),

    /*
     * 抽奖
     */
    DRAW_AWARD(8, "抽奖", MessageTemplateScenario.DRAW_AWARD),

    /*
     * 裂变奖励
     */
    FISSION_AWARD(9, "裂变奖励", MessageTemplateScenario.FISSION_AWARD);

    private final Integer index;

    private final String name;

    private final MessageTemplateScenario info;

    private TemplateScenarioEnum(Integer index, String name, MessageTemplateScenario info) {
        this.name = name;
        this.index = index;
        this.info = info;
    }
}
